import request from '@/utils/request'

export function getAllDoorGroup(data) {
  return request({
<<<<<<< HEAD
    url: '/CardSolution/card/accessControl/doorGroup/bycondition/combined?userId=xx&userName=xx&token=xx',
=======
    // url: '/CardSolution/card/accessControl/doorGroup/bycondition/combined?userId=xx&userName=xx&token=xx',
    url: '/CardSolution/card/accessControl/doorGroup/bycondition/combined',
>>>>>>> 9bd91f7cdea89e78ee433b17f8909db13645484f
    method: 'post',
    data: data
  })
}

export function getDoorGroupById(id) {
<<<<<<< HEAD
  return request({
    url: '/CardSolution/card/accessControl/doorGroup/' + id + '?userId=xx&userName=xx&token=xx',
    method: 'post',
=======
  let data = {
    'id': id
  }
  return request({
    // url: '/CardSolution/card/accessControl/doorGroup/' + id + '?userId=xx&userName=xx&token=xx',
    url: '/CardSolution/card/accessControl/doorGroup/id/' + id,
    method: 'post',
    data: data
>>>>>>> 9bd91f7cdea89e78ee433b17f8909db13645484f
  })
}

export function deleteDoorGroupByIds(doorGroupIds) {
  return request({
<<<<<<< HEAD
    url: '/CardSolution/card/accessControl/doorGroup/delete/batch?userId=xx&userName=xx&token=xx',
=======
    // url: '/CardSolution/card/accessControl/doorGroup/delete/batch?userId=xx&userName=xx&token=xx',
    url: '/CardSolution/card/accessControl/doorGroup/delete/batch',
>>>>>>> 9bd91f7cdea89e78ee433b17f8909db13645484f
    method: 'post',
    data: doorGroupIds
  })
}

export function updateDoorGroup(data) {
  return request({
<<<<<<< HEAD
    url: '/CardSolution/card/accessControl/doorGroup/update?userId=xx&userName=xx&token=xx',
=======
    // url: '/CardSolution/card/accessControl/doorGroup/update?userId=xx&userName=xx&token=xx',
    url: '/CardSolution/card/accessControl/doorGroup/update',
>>>>>>> 9bd91f7cdea89e78ee433b17f8909db13645484f
    method: 'post',
    data: data
  })
}

<<<<<<< HEAD
export function addDoorGroupBy(data) {
  return request({
    url: '/CardSolution/card/accessControl/doorGroup?userId=xx&userName=xx&token=xx',
=======
export function addDoorGroup(data) {
  return request({
    // url: '/CardSolution/card/accessControl/doorGroup?userId=xx&userName=xx&token=xx',
    url: '/CardSolution/card/accessControl/doorGroup/add',
>>>>>>> 9bd91f7cdea89e78ee433b17f8909db13645484f
    method: 'post',
    data: data
  })
}
